-
Notifications
You must be signed in to change notification settings - Fork 32
Add permit functions for flashblocks number contract #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
6499f4f to
f93045b
Compare
75e520c to
ef81cca
Compare
e79a2c9 to
9f2874a
Compare
f93045b to
b3c9f33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
b3c9f33 to
8b7e42a
Compare
| let tx = match self.estimate_flashblock_number_tx_gas(ctx, &mut evm, signer, nonce) | ||
| { | ||
| Ok(gas_used) => { | ||
| // Due to EIP-150, 63/64 of available gas is forwarded to external calls so need to add a buffer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we need to add the gas buffer anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this buffer is already calculated in the sign_tx function
📝 Summary
permit calls to flashblocks number contract if flashtestations are enabled as well. default to regular flashblocks number contract if flashtestations are not enabled.
--flashblocks.flashblocks-number-contract-use-permitflag to enable.✅ I have completed the following steps:
make lintmake test